home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 4125 < prev    next >
Encoding:
Text File  |  1996-08-05  |  2.3 KB  |  58 lines

  1. Newsgroups: comp.lang.c
  2. Path: uu4news.netcom.com!zodiac!szh
  3. From: szh@zcon.com (Syed Zaeem Hosain)
  4. Subject: Re: Unbuffered character input...
  5. Message-ID: <1996Feb2.022718.26719@zcon.com>
  6. Sender: szh@zcon.com (Syed Zaeem Hosain)
  7. Nntp-Posting-Host: zodiac
  8. Reply-To: szh@zcon.com
  9. Organization: Z Consulting Group
  10. References: <DM2D7s.3EI@emr1.emr.ca>
  11. Date: Fri, 2 Feb 1996 02:27:18 GMT
  12.  
  13. In article <DM2D7s.3EI@emr1.emr.ca>, jagrant@emr1.emr.ca (John Grant) writes:
  14. >In article <4em2oaINN54i@keats.ugrad.cs.ubc.ca> c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku) writes:
  15. >>In article <4elf0t$5vd@ixnews2.ix.netcom.com>,
  16. >>Kevin Landry <kevgar@ix.netcom.com> wrote:
  17. >>>Caleb Haley <chaley@tahiti.cs.unm.edu> wrote:
  18. >>>
  19. >>>>Greetings!
  20. >>>
  21. >>>>Just curious--is there a way to do unbuffered character input in c?
  22. >>>>i.e.  getting just one character without waiting for a carriage return 
  23. >>>>(enter)...
  24. >>>
  25. >>>I believe there are two commands in C that do this. getch() is
  26. >>>unbuffered input without echo and getche() has the echo. Hope this
  27. >>>helps.
  28. >>
  29. >>Sigh. C doesn't have commands. C has statements. The getch() and getche() that
  30. >>you describe are library functions---system-specific library functions,
  31. >>moreover.  They are not part of the standard library.
  32. >>
  33. >>To those of you who have been regulars of this group for a while, please bear
  34. >>with me: I will surely kick the habit of responding to clueless DOS
  35. >>programmers before long. In the past week, I've seen the stupid "how do I get
  36. >>single characters from the keyboard" asked about thirty times! The replies
  37. >>are often worse than the questions.
  38. >
  39. >    Would you be as insulting to 'clueless UNIX programmers' who
  40. >    asked the same question or provided a similar answer?
  41.  
  42. Yes, I certainly would respond in a similar way - usually to direct
  43. people to the FAQ.
  44.  
  45. And I would positively be a lot more polite and much less sarcastic
  46. that your posts are. And that is not an insult ...  merely a fact that
  47. I have observed after reading most of your posts - which seem to do
  48. nothing except flame at others posting here.
  49.  
  50.                                 Z
  51.  
  52.  
  53. -- 
  54. -------------------------------------------------------------------------
  55. | Syed Zaeem Hosain          P. O. Box 610097            (408) 441-7021 |
  56. | Z Consulting Group        San Jose, CA 95161             szh@zcon.com |
  57. -------------------------------------------------------------------------
  58.